package com.situ.day12;

public class YIChang {
	public static void main(String[] args) {
		int num1 = 3;
		int num2 = 0;
		
		System.out.println("----start-----");
		try {
//			int result = num1 / num2;
			int[] array = new int[2];
			array[2] = 3;
		} catch (ArithmeticException e) {
			System.out.println("catch ArithmeticException");
			e.printStackTrace();
		}catch (ArrayIndexOutOfBoundsException e) {
			System.out.println("catch ArrayIndexOutOfBoundsException");
			e.printStackTrace();
		}catch (Exception e) {
			System.out.println("Exception");
			e.printStackTrace();
		}finally {
			System.out.println("---finally-------");
		}
		System.out.println("-----end--------");
	}
}
